class Student:
    def __init__(self, student_no, student_name, student_age, student_height,
                 student_weight, student_score, student_address, student_phone):
        self.student_no = student_no
        self.student_name = student_name
        self.student_age = student_age
        self.student_height = student_height
        self.student_weight = student_weight
        self.student_score = student_score
        self.student_address = student_address
        self.student_phone = student_phone

    # 学习方法(要求传入学习的时间)
    def study(self, time):
        print(f"{self.student_name}正在学习，学习时间为{time}小时。")

    def play(self, game_name):
        print(f"{self.student_name}正在玩{game_name}游戏。")

    def programming(self, rows):
        print(f"{self.student_name}正在编写{rows}行代码。")

    # 数的求和（要求参数用变长参数来做，返回求和结果）
    @staticmethod
    def summary(*nums):
        total = sum(nums)
        print(f"求和结果是: {total}")
        return total


student = Student("2023001", "张三", 20, 175, 70, 90, "北京市海淀区", "1234567890")
student.study(3)
student.play("英雄联盟")
student.programming(100)
student.summary(1, 2, 3, 4, 5)
